



import numpy as np



b = np.arange(12)
print(b)
# [ 0  1  2  3  4  5  6  7  8  9 10 11]
# .reshape(shape)	不改变数组元素，返回一个shape形状的数组，原数组不变
c = b.reshape(3, 4)
print(c)


# 与.reshape()功能一样，但修改原数组
b.resize(3, 4)
print(b)


